<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>推广中心-<?php echo $cfg_webname; ?></title>
<link href="<?php echo $cfg_basehost;?>/css/v2_index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.superslide.2.1.1.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $cfg_basehost;?>/system/gzs.ajax.js"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<style type="text/css">
.yxw-tui-bz{background:#fff;margin-top:10px;padding:15px 15px;}
.yxw-tui-bz h2{color:#333;font-size:20px;line-height:18px;font-weight:700;margin:25px 0;text-align:center;}
.yxw-tui-bz h2 span{padding:0 5px;}
.yxw-tgzn{overflow:hidden;padding-top:10px;padding-bottom:10px;}
.yxw-tgzn h3{margin-bottom:5px;color:#333;font-size:16px;line-height:22px;}
.yxw-tgzn p{color:#999;font-size:14px;line-height:24px;text-align:justify;}
.jxjgz{cursor:pointer;background:rgba(28,31,33,.25);box-shadow:0 2px 17px 0 #FF6C00;border-radius:11px 0 0 11px;position:absolute;height:22px;line-height:22px;top:10px;right:0;font-size:12px;padding:0 10px;color:#fff;}

/*分销链接*/
.yxw-tglj .yxw-tglj2 a{width:100%;}
.yxw-tglj .yxw-tglj2 .btn2020{background:#333;}

/*推广规则*/
.tuiguang-sm{padding:25px 0 65px;}
.tuiguang-sm h3{font-size:18px;color:#ff700a;padding-bottom:10px;font-weight:700;}
.tuiguang-sm p{line-height:24px;font-size:14px;color:#333;padding-bottom:15px;text-align:justify;}
.tuiguang-sm p strong{font-weight:bold;color:#333;}

/*提现金额*/
.earningsheight{height:200px;background:url(<?php echo $mcfg_basehost; ?>/m-images/header.png);background-repeat:no-repeat;background-position:center;background-size:cover;padding:0 15px;}
.earningsheight .top-earnings{text-align:center;color:#fff;padding:40px 0;}
.earningsheight .top-earnings .earnings{font-size:14px;line-height:18px;}
.earningsheight .top-earnings .money{font-weight:700;font-size:48px;line-height:48px;margin:10px 0;}
.earningsheight .top-earnings .money sup{font-size:20px;vertical-align:super;}
.earningsheight .top-earnings a.btn-withdraw{display:block;width:90px;height:32px;line-height:32px;border-radius:20px;border:1px solid #fff;text-align:center;font-size:12px;margin:0 auto;color:#fff;}

/*收益*/
.earnings-item{background:#fff;padding:20px 0;border-left:1px solid #ff700a;border-right:1px solid #ff700a;}
.earnings-item .list:first-child{border-bottom:1px solid #d4d4d4;}
.earnings-item .list{display:flex;}
.earnings-item .item:first-child{border-right:1px solid #d4d4d4;}
.earnings-item .list .item{flex:1;}
.earnings-item .item{text-align:center;color:#2B333B;}
.earnings-item .item span{font-size:14px;margin-top:20px;display:inline-block;}
.earnings-item .item p{font-weight:700;font-size:20px;margin-bottom:10px;padding-top:5px;}
.earnings-item .item p em{font-size:12px;}

/*我的推荐人*/
.yxw-wd-tjr{text-align:center;padding:20px;}
.yxw-wd-tjr img{display:block;margin:0 auto;width:100px;height:100px;border-radius:50%;}
.yxw-wd-tjr p{line-height:22px;font-size:16px;color:#333;padding-top:10px;}

/*提现*/
.yxw-tixian-box{padding:0 15px;}
.yxw-tixian-box .tx-input{width:100%;line-height:18px;font-size:14px;color:#666;background-color:#f3f7fa;padding:16px 15px;box-sizing:border-box;border-radius:3px;margin-top:10px;}
.yxw-tixian-box .m-tx-tj{width:100%;line-height:46px;font-size:16px;margin-top:10px;padding:0;border-radius:3px;color:#fff;background-color:#ff700a;display:block;text-align:center;cursor:pointer;}

/*提现注意事项*/
.yxw-txsx{background:#fff;margin-top:30px;padding:15px;}
.yxw-txsx h2{color:#333;font-size:16px;line-height:24px;display:inline-block;padding-bottom:5px;}
.yxw-txsx p.tip{font-size:12px;color:#B7BBBF;line-height:18px;margin-bottom:10px;}

/*功能列表*/
.my-item-box{overflow:hidden;}
.my-item-box li{float:left;width:284px;display:block;}
.my-item{position:relative;height:50px;line-height:50px;border:1px solid #ff700a;font-size:16px;color:#333;background:#fff;padding-left:15px;display:block;text-align:center;margin-bottom:25px;box-sizing:border-box;}
.my-item-left{border-left:0;}

/*我的推广链接*/
.gzs-tglj{float:right;text-align:center;margin-top:12px;}
.gzs-tglj a{height:46px;line-height:46px;border-radius:23px;display:block;color:#333;font-size:16px;border:1px solid #717171;padding:0 15px;}
.gzs-tglj a:hover{color:#ff700a;border:1px solid #ff700a;}
.uc-content-box .box-hd{overflow:hidden;margin-bottom:20px;}
.uc-content-box .box-hd .title{display:inline-block;}
input#foo{background:#fff;width:1px;color:#fff;border:none;cursor:pointer;}
</style>
</head>
<body>

<?php include(DEDEMEMBER."/templets/head.htm"); ?>

<div class="container">

<!-- 会员中心左侧 -->
<div class="user-container">
<div class="uc-box uc-sub-box">


<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">会员中心</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><?php if ($cfg_ml->M_Rank > 10){echo '<a href="buyhui.php" >续费会员</a>';} else{echo '<a href="buyhui.php">开通会员</a>';} ?></li>
<li><a href="operation.php">会员订单</a></li>
</ul>
</div>
</div>

<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">课程中心</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><a href="operation_ke.php">已购课程</a></li>
</ul>
</div>
</div>

<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">我的收藏</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><a href="mystow.php">收藏课程</a></li>
</ul>
</div>
</div>


<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">推广中心</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li class="active"><a href="zqtui.php">推广主页</a></li>
<li><a href="zqtui.php?a=tixian">我要提现</a></li>
</ul>
</div>
</div>


<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">账号管理</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><a href="/user/">个人信息</a></li>
<li><a href="edit_user.php">修改昵称</a></li>
<li><a href="edit_baseinfo.php">修改密码</a></li>
</ul>
</div>
</div>

</div>
</div>
<!-- 会员中心左侧 End -->



<!-- 右侧功能定位 -->
<div class="user-right">
<div class="uc-box uc-main-box">
<div class="uc-content-box order-list-box">
<div class="box-hd">
<h1 class="title">推广中心</h1>
<!-- 我的推广链接 -->
<div class="gzs-tglj">
<a href="javascript:void(0)" data-clipboard-target="#foo" aria-label="复制成功，快去推广赚钱吧！" class="btn2020">复制我的推广链接<input id="foo" value="<?php echo $cfg_basehost; ?>/u_<?php echo $mid;?>"></a>
</div>
<!-- 我的推广链接 End -->
</div>
<div class="box-operation">

<!-- 提现 -->
<div class="earningsheight" style="position:relative;">
<div class="top-earnings">
<p class="earnings">可提现收益(元)</p>
<h2 class="money"><?php echo $M['shouyi'];?></h2>   
<a href="zqtui.php?a=tixian" class="js-btn-withdraw btn-withdraw" target="_blank">去提现</a>
</div>
</div>
<!-- 提现 End -->

<!-- 收益/推广人数 -->
<div class="earnings-item clearfix">
<div class="list">

<div class="item">
<span>推广用户数</span>
<a href="zqtui_list.php" target="_blank">
<p><?php echo $M['dangqiantuiguang']; ?><em>人</em></p>
</a>
</div>

<div class="item">
<span>已购买人数</span>
<p><?php echo $M['yigoumai']; ?><em>人</em></p>
</div>
</div>

<div class="list">
<div class="item">
<span>待到帐收益(元)</span>
<p><?php echo $M['daidaozhang']; ?></p>
</div>
<div class="item">
<span>已领取收益(元)</span>
<p><?php echo $M['yilingqu']; ?></p>
</div>
</div>

</div>
<!-- 收益/推广人数 End -->


<!-- 功能列表 -->
<div class="my-item-box">
<ul>
<li><a href="zqtui.php?a=shouyi" class="my-item" target="_blank">收益明细</a></li>
<li><a href="zqtui.php?a=txjl" class="my-item my-item-left" target="_blank">提现记录</a></li>
<li><a href="zqtui.php?a=mytjr" class="my-item my-item-left" target="_blank">我的推荐人</a></li>
</ul>
</div>
<!-- 功能列表 End -->

<!-- 推广规则 -->
<?php 
$row = $dsql->GetOne("SELECT * FROM `biz_arctype` WHERE id=49");
echo "<div class='tuiguang-sm'>".$row['content']."</div>";
?>
<!-- 推广规则 End -->

</div>
</div>
</div>
</div>
<!-- 右侧功能定位 End -->

</div>

<?php include(DEDEMEMBER."/templets/footer.htm"); ?>

<script src="<?php echo $mcfg_basehost; ?>/m-js/clipboard.min.js"></script>
<script>
var clipboard = new Clipboard('.btn2020');
clipboard.on('success', function(e) {
    var msg = e.trigger.getAttribute('aria-label');
    alert(msg);
    console.info('Action:', e.action);
    console.info('Text:', e.text);
    console.info('Trigger:', e.trigger);
    e.clearSelection();
});
</script>

</body>
</html>